package com.example.demo.controller;

import com.example.demo.common.DemoException;
import com.example.demo.common.Response;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JiJunpeng
 * @date 2018/7/25
 */
@RestController
@RequestMapping("/demo")
public class DemoController {
    public Response throwException() {
        throw DemoException.systemErrorException();
    }
}
